@echo off

cd /d "%~dp0\"
mkdir FSLib.App.SimpleUpdater\Utilities
copy FSLib.App.Utilities\bin\Release\net6.0-windows\FSLib.App.Utilities.exe FSLib.App.SimpleUpdater\Utilities\FSLib.App.Utilities.exe
copy FSLib.App.Utilities\bin\Release\net6.0-windows\FSLib.App.Utilities.dll FSLib.App.SimpleUpdater\Utilities\FSLib.App.Utilities.dll
copy FSLib.App.Utilities\bin\Release\net6.0-windows\FSLib.App.Utilities.runtimeconfig.json FSLib.App.SimpleUpdater\Utilities\FSLib.App.Utilities.runtimeconfig.json

_Tools\FSLib.App.Utilities.exe zipfile FSLib.App.SimpleUpdater\Utilities\FSLib.App.Utilities.exe
_Tools\FSLib.App.Utilities.exe zipfile FSLib.App.SimpleUpdater\Utilities\FSLib.App.Utilities.dll
_Tools\FSLib.App.Utilities.exe zipfile FSLib.App.SimpleUpdater\Utilities\FSLib.App.Utilities.runtimeconfig.json

del FSLib.App.SimpleUpdater\Utilities\*.exe
del FSLib.App.SimpleUpdater\Utilities\*.dll
del FSLib.App.SimpleUpdater\Utilities\*.json
del FSLib.App.SimpleUpdater\Utilities\*.config
pause